package com.autumn.zero.authorization.entitys.roles;

import javax.persistence.Column;
import javax.persistence.Table;

import com.autumn.constants.SettingConstants;
import com.autumn.mybatis.mapper.annotation.ColumnOrder;
import com.autumn.mybatis.mapper.annotation.Index;
import com.autumn.zero.authorization.entitys.AbstractClaim;

/**
 * 角色声明
 * 
 * @author 杨昌国 2018-11-25 01:00:59
 */
@Table(name = SettingConstants.SYS_TABLE_PREFIX + "_role_claim")
public class RoleClaim extends AbstractClaim {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8952747802702831985L;

	/**
	 * 字段 roleId
	 */
	public static final String FILED_ROLE_ID = "roleId";
	
	/**
	 * 角色Id
	 */
	@Column(name = "role_id", nullable = false)
	@Index
	@ColumnOrder(1)
	private Long roleId;

	/**
	 * 获取角色Id
	 * 
	 * @return
	 */
	public Long getRoleId() {
		return roleId;
	}

	/**
	 * 设置角色Id
	 * 
	 * @param roleId
	 *            角色Id
	 */
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
}
